package online.hxstar.cloud.gateway;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.ApplicationPidFileWriter;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

/**
 * @author xinghu
 */
@SpringBootApplication
@EnableDiscoveryClient
public class CloudGatewayApplication {

	public static void main(String[] args) {
		SpringApplication app = new SpringApplication(CloudGatewayApplication.class);
		app.addListeners(new ApplicationPidFileWriter());
		app.run(args);
	}
}
